import bge

scene = bge.logic.getCurrentScene()
for x in scene.objects:
    print(x)